<!-- djangotutorial/templates/admin/base_site.html -->

{% extends "admin/base_site.html" %}
{% load static %}

{% block extrastyle %}
    {{ block.super }}
    <link rel="stylesheet" href="{% static 'admin/css/custom.css' %}">
{% endblock %}
{% block title %}{{ title }} | {{ site_header }}{% endblock %}

{% block branding %}
<h1 id="site-name">
    <a href="{% url 'admin:index' %}" style="font-family: 'Arial'; color: #fce301f6;">
        {{ site_header }} <!-- 此处引用 admin.py 中设置的变量 -->
    </a>
</h1>
{% endblock %}